From: Mo Zhou Date: Sun, 28 Sep 2025 16:50:00 +0000 (+0200) Subject: Suppress compiler warnings since GCC-12. (Closes: #1016283) X-Git-Tag: archive/raspbian/2022.1.0-1+rpi1+deb13u1^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6390a99ba87897df170285a4ec9f6de52914e609;p=onetbb.git Suppress compiler warnings since GCC-12. (Closes: #1016283) Last-Update: 2022-08-18 Forwarded: https://github.com/oneapi-src/oneTBB/issues/823 Gbp-Pq: Name 1030-warning-flags.patch --- diff --git a/cmake/compilers/GNU.cmake b/cmake/compilers/GNU.cmake index da6b408..c0757da 100644 --- a/cmake/compilers/GNU.cmake +++ b/cmake/compilers/GNU.cmake @@ -26,7 +26,7 @@ else() set(TBB_DEF_FILE_PREFIX lin${TBB_ARCH}) endif() -set(TBB_WARNING_LEVEL -Wall -Wextra $<$:-Werror> -Wfatal-errors) +set(TBB_WARNING_LEVEL -Wall -Wextra $<$:-Werror> -Wfatal-errors -Wno-error=uninitialized -Wno-error=array-bounds -Wno-error=use-after-free -Wno-error=address) set(TBB_TEST_WARNING_FLAGS -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor) # Depfile options (e.g. -MD) are inserted automatically in some cases.